package com.magic.process.event;

import com.magic.dto.MeetingOperateDTO;
import com.magic.enums.MeetingEventEnum;
import com.magic.handler.MeetingHelper;
import com.magic.process.BaseMeetingEvent;
import com.magic.process.IMeetingEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StartMeetingEvent extends BaseMeetingEvent<MeetingOperateDTO> implements
    IMeetingEvent.StartEvent<MeetingOperateDTO> {



  @Override public MeetingEventEnum currentEvent(MeetingOperateDTO param) {
    log.info("start currentEvent");
    return MeetingEventEnum.START;
  }

  @Override public MeetingHelper[] execute(MeetingEventEnum eventEnum, MeetingHelper... helpers)  {
    log.info("start execute");
    return helpers;
  }

  @Override public MeetingHelper[] preExecute(MeetingOperateDTO param) {
    log.info("start preExecute");
    return null;
  }
}
